package com.example.aopdemo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {
    @RequestMapping("/hi")
    public String hi(){
        System.out.println("执行hi方法");
        return "hi!";
    }
}
